// define(function(require){
import React from 'react';
import antd from 'antd';
var { Tabs, Radio } = antd;
const TabPane = Tabs.TabPane;

import Svg from 'jsx!./svg';
import WrappedTable from 'jsx!./table'

class SlidingTabsDemo extends React.Component {
  constructor(props) {
    super(props);
    this.state = {
      mode: 'top',
    };
  }
  handleModeChange(e) {
    const mode = e.target.value;
    this.setState({ mode });
  }
  render() {
    const { mode } = this.state;
    return (
      <div>
        <Radio.Group onChange={this.handleModeChange.bind(this)} value={mode} style={{ marginBottom: 8 }}>
          <Radio.Button value="top">Horizontal</Radio.Button>
          <Radio.Button value="left">Vertical</Radio.Button>
        </Radio.Group>
        <Tabs
          defaultActiveKey="1"
          tabPosition={mode}
        >
          <TabPane tab="Tab 1" key="1">
            <WrappedTable />
          </TabPane>
          <TabPane tab="Tab 2" key="2">
            <Svg />
          </TabPane>
          <TabPane tab="Tab 3" key="3">Content of tab 3</TabPane>
        </Tabs>
      </div>
    );
  }
}

export default SlidingTabsDemo
// })